package org.linlinjava.litemall.web.util;

public enum WebResponseEnum {


    BARCODE_ENCODE_ERROR(700000,"二维码解析错误"),
    BARCODE_EXPIRE(700001,"二维码已失效"),
    BARCODE_ERROR(700002,"错误的二维码"),
    BAD_ARGUMENT_ORDERID(700003,"订单id为空"),
    BAD_ARGUMENT_CARDID(700005,"礼物卡id为空"),
    IS_NULL_CARD(700006,"礼物卡不存在"),
    NOT_ENOUGH_AMOUNT(700007,"余额不足"),
    SCAN_PAY_ERROR(700008,"扫码支付失败"),
    COUPON_BARCODE_ERROR(700009,"不存在的优惠券"),
    COUPON_BARCODE_EXPIRE(700010,"优惠券过期"),
    COUPON_BARCODE_NOT_ENOUGH(700011,"优惠券使用数量已达上限"),
    COUPON_BARCODE_ORDER(700012,"优惠券不能使用，订单金额不够"),
    ORDER_NOT_EXIST(700013,"订单不存在"),
    ACCESSORY_ENOUGH(700014,"辅料不足"),

    COUPON_BARCODE_NOT_POS(700015,"POS不能使用这张APP专用"),
    COUPON_BARCODE_HAVE_USE(700016,"该优惠券已经使用了"),

    COUPON_BARCODE_REGION_LIMIT(700017,"该地区不可使用"),

    COUPON_BARCODE_GOODS_LIMIT(700018,"该券指定分类，指定商品优惠券"),
    GIFT_CARD_SHARE_NOT_AUTH(764,"");

    private Integer code;
    private String msg;
    WebResponseEnum(Integer code , String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

